package com.spring.cootask.web.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spring.security.web.model.BaseModel;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FeTask extends BaseModel {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1126960556960627809L;
	
    @DateTimeFormat( pattern = "yyyy-MM-dd" )
    private Date beginTime;



	private List<FeTask> children=new ArrayList<FeTask>();

	private String content;

	private String contentModels;

	public String[] contentModule;
	
	@DateTimeFormat( pattern = "yyyy-MM-dd" )
    private Date endTime;

	private String febackgroundID;

	private String goal;
	
	private String id;
	private String note;

	private String parentId;
	
	private String parentName;
	
	private String pid;

	private String tablebaseID;

	private String tablebaseName;
	
	private Integer tableType;
	
	private String tableTypeName;
	private String task_user_status;
	
    private String task_user_status_name="";

    private Integer taskLevel;

    private String taskLevelName;

    private Integer taskStatus;

    private String taskStatusName;

    private Integer taskType;

    private String taskTypeName;
    
    private String taskUserId;//浠诲姟鎺ユ敹浜鸿〃涓婚敭

	private String title;

	public String[] titleModule;

	public String titleModules;
	private String userId;//鎺ユ敹浜篿d
    
    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date getBeginTime() {
        return beginTime;
    }

    public List<FeTask> getChildren() {
		return children;
	}

    public String getContent() {
        return content;
    }

    public String getContentModels() {
		return contentModels;
	}

    public String[] getContentModule() {
		return contentModule;
	}

    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date getEndTime() {
        return endTime;
    }

    public String getFebackgroundID() {
		return febackgroundID;
	}

    public String getGoal() {
        return goal;
    }

    public String getId() {
        return id;
    }

    public String getNote() {
        return note;
    }

    public String getParentId() {
        return parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public String getPid() {
		return pid;
	}

    public String getTablebaseID() {
        return tablebaseID;
    }

    public String getTablebaseName() {
        return tablebaseName;
    }
    
    public Integer getTableType() {
        return tableType;
    }

	public String getTableTypeName() {
        return tableTypeName;
    }

	public String getTask_user_status() {
		return task_user_status;
	}

    public String getTask_user_status_name() {
		return task_user_status_name;
	}

    public Integer getTaskLevel() {
        return taskLevel;
    }

    public String getTaskLevelName() {
        return taskLevelName;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public String getTaskStatusName() {
        return taskStatusName;
    }

    public Integer getTaskType() {
        return taskType;
    }

    public String getTaskTypeName() {
        return taskTypeName;
    }

    public String getTaskUserId() {
        return taskUserId;
    }

    public String getTitle() {
        return title;
    }

    public String[] getTitleModule() {
		return titleModule;
	}

    public String getTitleModules() {
		return titleModules;
	}

    public String getUserId() {
        return userId;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public void setChildren(List<FeTask> children) {
		this.children = children;
	}

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public void setContentModels(String contentModels) {
		this.contentModels = contentModels;
		if(contentModels!=null){
			this.contentModule=contentModels.split(",");
		}
	}

    public void setContentModule(String[] contentModule) {
    	if(contentModule==null){
    		contentModule=new String[0];
    	}    	
		this.contentModule = contentModule;
	}

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setFebackgroundID(String febackgroundID) {
    	if(febackgroundID!=null&&febackgroundID.equals("")){
    		febackgroundID=null;
    	}
		this.febackgroundID = febackgroundID;
	}

    public void setGoal(String goal) {
        this.goal = goal == null ? null : goal.trim();
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public void setPid(String pid) {
		this.pid = pid;
	}

    public void setTablebaseID(String tablebaseID) {
    	if(tablebaseID!=null&tablebaseID.equals("")){
    		tablebaseID=null;
    	}
        this.tablebaseID = tablebaseID;
    }

    public void setTablebaseName(String tablebaseName) {
        this.tablebaseName = tablebaseName;
    }

    public void setTableType(Integer tableType) {
        this.tableType = tableType;
    }

    public void setTableTypeName(String tableTypeName) {
        this.tableTypeName = tableTypeName;
    }

    public void setTask_user_status(String task_user_status) {
		this.task_user_status = task_user_status;
	}

    public void setTask_user_status_name(String task_user_status_name) {
		this.task_user_status_name = task_user_status_name;
	}

    public void setTaskLevel(Integer taskLevel) {
        this.taskLevel = taskLevel;
    }

    public void setTaskLevelName(String taskLevelName) {
        this.taskLevelName = taskLevelName;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public void setTaskStatusName(String taskStatusName) {
        this.taskStatusName = taskStatusName;
    }

    public void setTaskType(Integer taskType) {
        this.taskType = taskType;
    }

    public void setTaskTypeName(String taskTypeName) {
        this.taskTypeName = taskTypeName;
    }

    public void setTaskUserId(String taskUserId) {
        this.taskUserId = taskUserId;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public void setTitleModule(String[] titleModule) {
		this.titleModule = titleModule;
	}

    public void setTitleModules(String titleModules) {
		this.titleModules = titleModules;
		if(titleModules!=null){
			this.titleModule = titleModules.split(",");
		}
	}

    public void setUserId(String userId) {
        this.userId = userId;
    }
}